package com.chengdu.third.service;

import com.chengdu.third.pojo.User;

import java.util.List;

/**
 * @author jingbo
 * @create 2021--08--15  21:53
 */
public interface IUserService {

    //根据id查询用户
    public User getUserById(long id);

    //根据username查询
    public  User getUserByUsername(String username);

    //查询所有用户
    public List<User> findAll();

    //根据id删除用户
    public void deleteByid(long id);

    //修改id用户的信息
    public void updateByid(String username,String password,String phone,long id);

    //添加一个用户
    public void adduser(User user);

    public void addUser1(String username,String password,String phone);

    //登录时验证
    public int login(String username,String password);


}
